// components/nav-bar.js
const app = getApp();
let statusBarHeight = app.globalData.statusBarHeight;
let navHeight = app.globalData.navHeight;
let navTop = app.globalData.navTop;
let menuButtonBoundingHeight = app.globalData.menuButtonBoundingHeight;


Component({
  /**
   * 组件的属性列表
   */
  properties: {
    myProperty: String
  },

  /**
   * 组件的初始数据
   */
  data: {
    navHeight: navHeight,
    navTop: navTop,
    menuButtonBoundingHeight: menuButtonBoundingHeight,
    statusBarHeight: statusBarHeight
  },

  methods: {
    back() {
      wx.navigateBack({
        delta: 1
      })
    }
   }

})
